/**
 * Created by Lenovo4 on 2016/2/19.
 */
function ShowFaceList() {
    if ($('#Faces').css('display') == 'none') {
        $('#Faces').css({display: 'block'});
        $(document).bind('mouseup', function (e) {
            if ($(e.target).attr('isface') != '1' && $(e.target).attr('isface') != '2') {
                $('#Faces').css('display', 'none');
                $(document).unbind('mouseup');
            }
            else if ($(e.target).attr('isface') == '1') {
                var imgurl = $(e.target).css("background-image");
                imgurl = imgurl.replace(/.*url\("([^\)]+)"\).*/gi,'$1');
                $('#Y_iSend_Input').append('<img src="'+imgurl+'">');
                //var face = '/' + $(e.target).css("background-image");
                // UE.getEditor('Y_iSend_Input').execCommand('insertHtml',face)
            }
        });
    }
    else {
        $('#Faces').css({display: 'none'});
    }
}